package com.rslai.base.tool.servertest.command;

import com.rslai.base.tool.servertest.util.CloneUtil;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TearDownStepCommand extends CompositeStepCommand {
    public TearDownStepCommand(List<StepCommand> children) {
        super(children);
    }

    public StepCommand doClone() {
        return new TearDownStepCommand(CloneUtil.cloneStepCommand(this.children));
    }

    public Map<String, Object> toReport() {
        Map details = new HashMap();
        details.put("stepName", "清理工作:");
        details.put("name", "调用Command" + getChildren());
        List params = new ArrayList();
        details.put("params", params);
        return details;
    }
}
